<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateElImagesTable extends Migration
{

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('el_images', function(Blueprint $table) {
            $table->increments('id');
			$table->string('name');
			$table->string('url');	//本地url
			$table->string('remote_url')->nullable();	//远程URL
			$table->integer('category_id'); //分类ID
            $table->timestamps();
			$table->softDeletes();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('el_images');
	}

}
